const topicLibrary = {
  path: 'topic-library',
  name: 'topic-library',
  redirect: '/admin/share-library/topic-library/list',
  meta: { title: '专题库', type: 4 },
  component: () => import('@/layout/admin/public.vue'),
  children: [
    {
      path: 'list',
      name: 'topic-list',
      meta: { type: 4 },
      component: () =>
        import('@/views/Admin/courseLibrary/courseList/index.vue'),
    },
    {
      path: 'manage',
      name: 'topic-manage',
      redirect: '/admin/share-library/topic-library/manage/info',
      meta: { title: '专业管理', type: 4, dataType: 1 },
      component: () =>
        import('@/views/Admin/courseLibrary/courseManage/index.vue'),
      children: [
        {
          path: 'info',
          name: 'topic-info',
          meta: { title: '元素库信息', type: 4 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseInfo/index.vue'
            ),
        },
        {
          path: 'chapter',
          name: 'topic-chapter',
          meta: { title: '资源管理', type: 4 },
          redirect:
            '/admin/share-library/topic-library/manage/chapter/knowledge-list',
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseChapter/index.vue'
            ),
          children: [
            {
              path: 'knowledge-list',
              name: 'topic-knowledge-list',
              meta: { type: 4 },
              component: () =>
                import('@/views/Admin/specialtyLibrary/knowledge/index.vue'),
            },
            {
              path: 'knowledge-create',
              name: 'topic-knowledge-create',
              meta: { title: '资源创建', type: 4 },
              component: () =>
                import(
                  '@/views/Admin/courseLibrary/knowledge/knowledgeCreate/index.vue'
                ),
            },
            {
              path: 'knowledge-setting',
              name: 'topic-knowledge-setting',
              meta: { title: '资源创建', type: 4, dataType: 4 },
              component: () =>
                import(
                  '@/views/Admin/courseLibrary/knowledge/knowledgeManage/index.vue'
                ),
            },
          ],
        },
        {
          path: 'team',
          name: 'topic-team',
          meta: { title: '教师团队', type: 4 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseTeam/index.vue'
            ),
        },
        {
          path: 'strategy',
          name: 'topic-strategy',
          meta: { title: '批注管理', type: 4 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseStrategy/index.vue'
            ),
        },
        {
          path: 'review',
          name: 'topic-review',
          meta: { title: '评论管理', type: 4 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseReview/index.vue'
            ),
        },
        {
          path: 'data',
          name: 'topic-data',
          meta: { title: '数据统计', type: 4 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseData/index.vue'
            ),
        },
        {
          path: 'update',
          name: 'topic-update',
          meta: { title: '更新管理', type: 4 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseUpdate/index.vue'
            ),
        },
        {
          path: 'other',
          name: 'topic-other',
          meta: { title: '其他功能', type: 4 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseOther/index.vue'
            ),
        },
      ],
    },
  ],
}
export default topicLibrary
